package com.zpark;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;

/**
 * @PackageName: com.zpark
 * @ClassName: JsoupDemo02
 * @Description:
 * @author: RZS
 * @date: 2021/8/13  22:05
 */
public class JsoupDemo02 {
    public static void main(String[] args) throws IOException {
        // 通过网络资源路径获取指定的html或xml文档对象
        URL url = new URL("https://www.yiibai.com/java_xml");
        Document document = Jsoup.parse(url, 5000);
        System.out.println(document);
    }
}
